package com.yang.designmode.ActionMode.state.mario.state;

// 状态机
public class MarioStateMachine {
    private int score;

    private IMario mario;

    public MarioStateMachine() {
        this.score = 100;
        this.mario = SmallMario.getInstance();
    }


    public void obtainMushRoom(){
        mario.obtainMushRoom(this);
    }
    public void obtainCape(){
        mario.obtainCape(this);
    }
    public void obtainFire(){
        mario.obtainFire(this);
    }
    public void meetMonster(){
        mario.meetMonster(this);
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public IMario getMario() {
        return mario;
    }

    public void setMario(IMario mario) {
        this.mario = mario;
    }
}